package main.pojo;

import java.util.Arrays;

/**
 * 作者: ALIM-MASTIK
 * 创建实现: 2023/7/14 20:33
 * 项目名称：chat
 * 软件: IntelliJ IDEA
 */
public class User {
    private int userID;
    private String username;
    private String password;
    private String nickname;
    private String avatar;
    private byte[] photo;

    public byte[] getPhoto() {
        return photo;
    }
    public void setPhoto(byte[] photo) {
        this.photo = photo;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    @Override
    public String toString() {
        return "User{" +
                "userID=" + userID +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", avatar='" + avatar + '\'' +
                ", photo=" + Arrays.toString(photo) +
                '}';
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
